package com.core.life.service.impl;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.core.life.service.IJobService;

@Service
public class JobServiceImpl implements IJobService{

	//test 没5秒执行一次
//	@Scheduled(cron = "0/5 * * * * *")  
	//每天3点执行此方法
	@Scheduled(cron = "0 0 3 * * ?") 
	@Override
	public void countConsumeByMonth() {
		System.out.println("计算账单。。。。。");
		
	}

}
